using HtmlAgilityPack;

internal static class HtmlNodeExtension
{
    internal static bool OfClass(this HtmlNode node, string name)
    {
        return node.Attributes["class"] != null && node.Attributes["class"].Value == name;
    }

    internal static bool OfId(this HtmlNode node, string id)
    {
        return node.Attributes["id"].Value == id;
    }

    internal static HtmlNodesReader Read(this HtmlNode node)
    {
        return new HtmlNodesReader(node);
    }
}